package com.sanbi.erp.db.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.sanbi.erp.db.domain.Warehouse;
import com.sanbi.erp.db.dao.WarehouseMapper;
@Service
public class WarehouseService{

    @Resource
    private WarehouseMapper warehouseMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return warehouseMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Warehouse record) {
        return warehouseMapper.insert(record);
    }

    
    public int insertSelective(Warehouse record) {
        return warehouseMapper.insertSelective(record);
    }

    
    public Warehouse selectByPrimaryKey(Integer id) {
        return warehouseMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(Warehouse record) {
        return warehouseMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Warehouse record) {
        return warehouseMapper.updateByPrimaryKey(record);
    }

}
